<template>
    <div class="logo" @click="change(!props.logoStatus)">
        <span v-show="!props.logoStatus">后台管理系统</span>
        <el-icon v-show="props.logoStatus">
            <ElemeFilled />
        </el-icon>
    </div>
</template>
<script setup>
import { ref } from "@vue/reactivity";

const props = defineProps({
    logoStatus: ref(false)
});

const emit = defineEmits(['change'])

const change = (status) => {
    // logoStatus.value = status
    emit('change', status)
}
</script>
<style lang="scss" scoped>
.logo {
    width: 100%;
    height: 60px;
    background-color: #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
</style>